Learn R Programming

Directional (version 4.0)

Circurlar correlations between one and many circular variables: Circurlar correlations between two circular variables

Description

Circurlar correlations between two circular variables.

Usage

circ.cors1(theta, phi)

Arguments

theta

The first cirular variable expressed in radians, not degrees.

phi

The other cirular variable. In the case of "circ.cors1" this is a matrix with many circular variables. In either case, the values must be in radians, not degrees.

Value

A matrix with two columns, the correlations and the p-values.

Details

Correlation for circular variables using the cosinus and sinus formula of Jammaladaka and SenGupta (1988).

References

Jammalamadaka, R. S. and Sengupta, A. (2001). Topics in circular statistics. World Scientific.

Jammalamadaka, S. R. and Sarma, Y. R. (1988) . A correlation coefficient for angular variables. Statistical Theory and Data Analysis, 2:349--364.

See Also

spml.reg

Examples

Run this code
# NOT RUN {
y <- runif(50, 0, 2 * pi)
x <- matrix(runif(50 * 10, 0, 2 * pi), ncol = 10)
circ.cors1(y, x)
# }

Run the code above in your browser using DataLab